package eerbaar.v2.graphics.rect;

import java.awt.Point;
import java.awt.Rectangle;

public class RectCorners {

    public static Point getBottomLeft(Rectangle r) {
        return new Point(r.x, r.y + r.height);
    }

    public static Point getBottomRight(Rectangle r) {
        return new Point(r.x + r.width, r.y + r.height);
    }

    public static Point getTopLeft(Rectangle r) {
        return new Point(r.x, r.y);
    }

    public static Point getTopRight(Rectangle r) {
        return new Point(r.x + r.width, r.y);
    }

}
